﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZBJF.Warranty.Common.Enums.SocketEnum;

namespace ZBJF.Warranty.Model.ViewModel.SocketModel
{
    public class ResultModel
    {
        public ResultModel(){}
        public ResultModel(bool result, string message, CodeStateEnum codeState)
        {
            this.Result = result;
            this.Message = message;
            this.CodeState = codeState;
        }
        public ResultModel(bool result, string message, CodeStateEnum codeState, object data)
        {
            this.Result = result;
            this.Message = message;
            this.CodeState = codeState;
            this.Data = data;
        }

        /// <summary>
        /// 是否成功
        /// </summary>
        public bool Result { get; set; }
        /// <summary>
        /// 消息内容
        /// </summary>
        public string Message { get; set; }
        /// <summary>
        /// 状态码
        /// </summary>
        public CodeStateEnum CodeState{ get; set; }
        /// <summary>
        /// 数据
        /// </summary>
        public object Data { get; set; }
    }
}